package com.beetlestech.nfe.main.biz.com.impl;
import com.beetlestech.nfe.fw.core.biz.AbstractDBLogic;
import com.beetlestech.nfe.main.biz.com.HbFilePath;
import com.beetlestech.nfe.main.biz.com.dto.MstfileInfoDTO;
import com.beetlestech.nfe.main.biz.constant.CommonConstant;
import com.beetlestech.nfe.main.biz.constant.CtgCodeConstant;
import com.beetlestech.nfe.main.biz.constant.HbMessageCode;
import com.beetlestech.nfe.main.db.constant.SQLConstant;
import com.beetlestech.nfe.main.db.tbl.MstfileDTO;
public class HbFilePathImpl extends AbstractDBLogic implements HbFilePath, CtgCodeConstant, HbMessageCode, CommonConstant, SQLConstant {
    

	@Override
	public MstfileInfoDTO getMstfileInfo(Integer fileId) {
		MstfileDTO msfileDTO =new MstfileDTO();
		msfileDTO.setfileid(fileId);
		MstfileDTO fileInfo=queryDAO.queryForObject(MstfileDTO.EQUAL_SEARCH, msfileDTO);
		return setFileInfo(fileInfo);
	}

	private MstfileInfoDTO setFileInfo(MstfileDTO mstfileDTO){
		MstfileInfoDTO mstfileInfoDTO = new MstfileInfoDTO();
		mstfileInfoDTO.setpath(mstfileDTO.getpath());
		mstfileDTO.settype(mstfileDTO.gettype());
		return mstfileInfoDTO;
	}
   }
